package cn.edu.lsnu.mbti.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 *
 * @TableName department
 */
@TableName(value ="department")
@Data
public class Department implements Serializable {
    /**
     *
     */
    @TableId(value = "id")
    private String id;

    /**
     * 院系名称
     */
    @TableField(value = "name")
    private String name;

    /**
     * 该学科下拥有的专业名称
     */
    @TableField(value = "major_name")
    private String majorName;


    /**
     * 院系编码
     */
    @TableField(value = "code")
    private Long code;

    /**
     *
     */
    @TableField(value = "sort")
    private Double sort;

    /**
     * 描述
     */
    @TableField(value = "description")
    private String description;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    private Date createTime;

    @TableField(exist = false)
    private List<Major> majorList;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}
